const router = require('koa-router')()
const { getForumList, getForumOfId, getForumComment, publishComment, releaseForum } = require("../controller/forumController")

// 获取论坛数据
router.get('/forum', getForumList)
// 通过id查询论坛数据
router.get('/forum/pid', getForumOfId)
// 获取论坛评论数据
router.get('/forum/comment', getForumComment)
// 发表评论
router.post('/comment/publish', publishComment)
// 发布论坛
router.post('/forum/release', releaseForum)

module.exports = router